﻿using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace GioHangViet.Models
{
    [Table("ProductPromotion")]
    public class ProductPromotion
    {
        /// <summary>
        /// mã sản phẩm
        /// </summary>
        [Key, Column(Order = 0)]
        [Display(ResourceType = typeof(Resources.Displaies), Name = "DisplayProductId")]
        public int ProductId { get; set; }

        /// <summary>
        /// Mã chương trình khuyến mại
        /// </summary>
        [Key, Column(Order = 1)]
        [Display(ResourceType = typeof(Resources.Displaies), Name = "DisplayPromotionAlias")]
        public string PromotionAlias { get; set; }

        /// <summary>
        /// Giá trị khuyến mại
        /// </summary>
        [Display(ResourceType = typeof(Resources.Displaies), Name = "DisplayPromotionPromotionPercent")]
        [DefaultValue(1)]
        public double PromotionPercent { get; set; }
    }
}